package API.DAY6.exception;

import java.awt.*;
import java.io.IOException;

public class ThrowsDemo {
    public void doSome() throws IOException, AWTException{}
}
class subClass extends ThrowsDemo{
//    public void doSome() throws IOException, AWTException{}//允许完全相同
//    public void doSome() throws IOException{}//允许抛出部分
//    public void doSome() {}//允许不抛出
//    public void doSome() throws FileNotFoundException{}//允许抛出小于超类的

//    public void doSome() throws SQLException{}//不允许抛出额外
//    public void doSome() throws Exception{}//不允许抛出大于超类的
}